<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>安装</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="wkhtmltox.requirements.html">« 需求</a></li>
      <li style="float: right;"><a href="wkhtmltox.configuration.html">运行时配置 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="wkhtmltox.setup.html">安装/配置</a></li>
    <li>安装</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="wkhtmltox.installation" class="section">
  <h2 class="title">安装</h2>
  <p class="para">
   The source code of this extension, and binaries for Windows are hosted by <a href="https://github.com/krakjoe/wkhtmltox" class="link external">&raquo;&nbsp;github</a>,
  </p>
  <p class="para">
   Fetching the source code and building the extension:
   <div class="example-contents screen">
   <div class="cdata"><pre>
git clone https://github.com/krakjoe/wkhtmltox
cd wkhtmltox
phpize
./configure --with-wkhtmltox=/path/to/wkhtmltox/installation
make
sudo make install
   </pre></div>
   </div>
  </p>
  <p class="para">
  Fetching updates and rebuilding the extension:
   <div class="example-contents screen">
   <div class="cdata"><pre>
cd wkhtmltox
phpize --clean
git pull origin master
phpize
./configure --with-wkhtmltox=/path/to/wkhtmltox/installation
make
sudo make install
   </pre></div>
   </div>
  </p>
 </div></div></div></body></html>